﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdvplDoc.Model {

    class AdvplMethod : AdvplFunction, IEquatable<AdvplMethod> {

		public AdvplMethod(string name,
						string desc,
						List<AdvplParam> parameters,
						AdvplReturnInfo return_info,
						List<string> obs_list,
						List<string> examples,
						string since,
						bool is_deprecated,
						string deprecated_info,
						List<string> seealso) : base(name,
								desc,
								parameters,
								return_info,
								obs_list,
								examples,
								since,
								is_deprecated,
								deprecated_info,
								seealso)
		{
		}

		public override string ToString() {
			return "Método ADVPL " + this.name;
		}

        public bool Equals(AdvplMethod other) {
            return this.name.ToUpper() == other.name.ToUpper();
        }
         
	}
}
